package com.yonyou.pmclouds.workquality.entity;

import com.yonyou.pmclouds.basecom.entity.SuperVO;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

@Data
@Table(name = "pmbd_workquality")
public class WorkqualityVO extends SuperVO {

    @Id
    private String pkWorkquality;
    @Column(name="pk_tenant",updatable=false)
    private String pkTenant;
    @Size(max = 50)
    @NotNull
    private String checkname;
    private String checktype;
    @Transient
    private String procedurename;
    private String pkProcedure;
    @Transient
    private WorkqualityDetailVO[] itemtabledata;

    @Column(name="creator",updatable=false)
    private String creator;
    @Column(name="creationtime",updatable=false)
    private Date creationtime;
    private String modifier;
    private Date modifytime;

    @Transient
    private String key;

    public String getKey() {
        return pkWorkquality;
    }

    @Transient
    private boolean used;

    @Transient
    private Integer itemcount;
    /**
     * 启用状态（0：停用，1：启用）
     */
    private byte enableStatus;
}
